//
//  STApplicationFormHeaderTableViewCell.m
//  赛拓
//
//  Created by 王磊 on 8/13/16.
//  Copyright © 2016 立金所. All rights reserved.
//

#import "STApplicationFormHeaderTableViewCell.h"
#import "STApplicationFormBean.h"
@interface STApplicationFormHeaderTableViewCell()

@property (nonatomic ,strong) UILabel *desLabel;

@property (nonatomic ,strong) STApplicationFormBean *appFormBean;
@end
@implementation STApplicationFormHeaderTableViewCell

- (void)configSubViews {
    [super configSubViews];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    
    UILabel *desLabel = [UILabel new];
    
    self.desLabel = desLabel;
    
    desLabel.textAlignment = NSTextAlignmentRight;
    
    desLabel.textColor = ST_666666_COLOR;
    
    [self addSubview:desLabel];
    
    self.textLabel.font = ST_15_FONT;
    
    self.textLabel.textColor = ST_666666_COLOR;
}
- (void)updateData:(id)data {
    
    STApplicationFormBean *appFormBean = data;
    
    self.appFormBean = appFormBean;
    
    self.textLabel.text = appFormBean.infoTitle;
    
    self.desLabel.text =appFormBean.infoDes;
    
}
- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.desLabel.frame = CGRectMake(ST_SCREEN_WIDTH / 2 - 60 * ST_RATE , 0, ST_SCREEN_WIDTH / 2 , self.k_height);
    
    
}
@end
